cmake_minimum_required(VERSION 2.8)
project(apriltags)

#add_definitions(-pg) #"-fopenmp)


file(GLOB SOURCE_FILES "src/*.cc")
include_directories(AprilTags . /opt/local/include)
add_library(apriltags ${SOURCE_FILES})#produce apriltaglib.a

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(apriltags ${OpenCV_LIBS})#为target添加需要链接的共享库

file(GLOB header_files "AprilTags/*.h")
#target_link_libraries(apriltags libapriltags.a)

add_subdirectory(example)
